home *** CD-ROM | disk | FTP | other *** search
- function setupSnow(t)
- {
- t.xVel = - snowWidth * 0.25 + Math.random() * (snowWidth * 0.5);
- t.yVel = - snowHeight - Math.random() * snowHeightRnd;
- t._rotation = random(180);
- }
- function doSnow(t)
- {
- t._x -= t.xVel;
- t.yVel += gravity;
- t._y += t.yVel;
- }
- snowHeight = 10;
- snowHeightRnd = 6;
- snowWidth = 12;
- gravity = 1.3;
- startShake = 64;
- endShake = 84;
-